#ifndef QAVFRAME_H
#define QAVFRAME_H
#include "qavcodec_global.h"
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavutil/opt.h>
}


class QAVCODECSHARED_EXPORT QAVFrame
{
public:
    explicit QAVFrame();
    explicit QAVFrame(AVFrame *frame);
    virtual ~QAVFrame();

    bool getBuffer(int align = 0);

    void setWidth(int width);
    int width();
    void setHeight(int height);
    int height();
    void setFormat(int format);
    int format();

    AVFrame* data();
    AVFrame* data() const;

private:
    AVFrame *m_frame;
};

#endif // QAVFRAME_H
